package sagroup.dracots;

import java.net.UnknownHostException;
import java.util.Arrays;

import lime2.Location;
import lime2.PolicyException;
import sagroup.util.Lights;

public class ProposeInitiator extends ProposePartin {

	public ProposeInitiator(int port, int httpPort)
			throws UnknownHostException, PolicyException {
		super(port, httpPort);
	}
//
//	public static void main(String[] args) throws UnknownHostException,
//			PolicyException, InterruptedException {
//		NodePartinTesting srcNode = new ProposeInitiator(initiator_port,
//				initiator_http_port);
//
//		srcNode.ts.out(TUPLE_TYPE, Lights.creatTuple("local"),
//				DracoTuple.SIGNAL);
//		DracoTuple pattern = new SignalTuple(null, Location.HERE,
//				Location.UNSPECIFIED, TUPLE_TYPE, null, Lights
//						.creatTuple("local"));
//		logger.info(srcNode.ts.rd(pattern).toString());
//
//		DracoTuple[] ans = srcNode.ts.propose(TUPLE_TYPE, group, Lights
//				.creatTuple("initiate"), DracoTuple.SIGNAL, new SignalTuple(
//				null, Location.HERE, Location.UNSPECIFIED, TUPLE_TYPE, null,
//				Lights.creatTuple(String.class)));
//		logger.info(Arrays.toString(ans));
//		while (true) {
//			Thread.sleep(2000);
//		}
//	}

}
